package test;

import java.net.URL;
import java.util.Vector;

import org.apache.soap.*;
import org.apache.soap.rpc.Call;
import org.apache.soap.rpc.Parameter;
import org.apache.soap.rpc.Response;

public class CII_Soap {

	  public static void main (String [] args)
	  {

		  String name = "";
			Call call = new Call();
//			call.setTargetObjectURI(arg0)
			call.setMethodName("");
			Vector<Parameter> params = new Vector<Parameter>();
			params.addElement(new Parameter("name",String.class, name,null));
			call.setParams(params);
			
			try
	        {
			Response res = call.invoke(new URL("urlString"), "");
			
		    
	          if( res.generatedFault() ==false)
	          {
	              Parameter retValue = res.getReturnValue();
	              Object value = retValue.getValue();
	              System.out.println(value);
	          }else
	          {
	              System.out.println("The fault is: "+res.getFault().getFaultString());
	          }
	        }catch(SOAPException soe)
	        {
	System.out.println("The SOAP Exception is : "+soe.toString());
	        }catch (Exception e) {
	System.out.println("other ext: " + e);        	
	        }

	   
	  }
	
}
